package com.txr.news.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
//@AllArgsConstructor
@NoArgsConstructor
public class Result {
    Integer status;
    String msg;
    Object data;
    String token;
    Code code;

    public Result(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Result(Integer status, String msg, Object data) {
        this.status = status;
        this.msg = msg;
        this.data = data;
    }

    public Result(Integer status, String msg, Object data, Code code) {
        this.status = status;
        this.msg = msg;
        this.data = data;
        this.code = code;
    }
}
